python two rectangles overlap

join shbcf.ru